package com.baitiaojun.user.mapper;

import com.baitiaojun.api.domain.user.FollowingGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface FollowingGroupMapper {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(FollowingGroup record);

    int insertSelective(FollowingGroup record);

    FollowingGroup selectByPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(FollowingGroup record);

    int updateByPrimaryKey(FollowingGroup record);

    List<FollowingGroup> getFollowingGroupListByIds(@Param("ids") Set<Long> ids);

    FollowingGroup selectByUserIdAndName(@Param("userId") Long userId, @Param("name") String name);

    List<FollowingGroup> selectByUserId(@Param("userId") Long userid);

    Integer selectFollowingGroupIsExistsById(@Param("id") Long id);
}